package com.springboot.one.controller;

import com.springboot.one.model.Stu;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 39308
 * 控制器
 */
@RestController
public class OneController {
    @Resource
    private Stu stu;

    @RequestMapping(value = "/test")
    public String test() {
        return stu + "This is a test!!!";
    }
}
